<?php
	require_once('class.Fitness.php');
	require_once('class.UserDB.php');
	$userDB = new UserDB();
	$fitness = new Fitness;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<link rel="Icon" href="favicon.ico" />
    <link rel="Stylesheet" type="text/css" media="screen" href="style.css" />
    <title>Fitness Shack</title>
</head>
<body>
    <div id="layout">
    <div id="title"><h1>Fitness Shack</h1></div>
    
    <div id="navigation">
    	<a href="index.php">Home</a> - 
    	<a href="tracker.php">Fitness Tracker</a> - 
    	<a href="testimonials.php">Testimonials</a> -
    	<a href="login.php">Login</a>
    </div>
    <div id="content">
    <div id="navigation"><a href="?s=addRoutine">Add a Routine</a> - <a href="?s=viewRoutines">View All Routines</a> - <a href="?s=updateRoutine">Update a Routine</a> - <a href="?s=completeWorkout">Complete a Workout</a> - <a href="?s=routineHelp">Ask for Help</a></div>
			<?php
			if(isset($_GET['s'])) {
				if ($_GET['s'] == "viewRoutines") {
					echo "<div id='heading'>View All Routines</div><br />";
				}
			} else {
				echo "<div id='heading'>News Feed</div><br />";
				$fitness->fitnessTrackerWelcome($_SESSION['fName']);
			}
    ?>
    </div>
	<div id="footer">
    	<a href="#">About</a> - <a href="#">Contact Us</a> - <a href="#">Help</a>
    	<br />
    	Copyright &copy; 2010 Fitness Shack
    </div>
    </div>
</body>
</html>		

		